<!DOCTYPE html>
<html lang="ch">
  <head>
    <meta charset="utf-8"/>
    <title>{% block title %}dagou 欢迎你{% endblock %}</title>
    <style>
      input {
        display: block;
      }
    </style>
  </head>

  <body>

  <div class="content">
    {% block maincontent %}

    {% endblock %}
  </div>

  <div>
    <footer>
      <hr/>
      <p>
        {% if not user %}
          <a href="/login">登陆(忘记密码)</a>
        {% else %}
          登陆用户: <span style="background-color: OldLace">{{ user.name }}</span> 
        | 
        <a href="/logout">注销</a>
        {% endif %}
        |
        <a href="/signup">注册新用户</a>
        |
        <a href="/">首页</a>        
        |
        <a href="/authenticated">个人空间</a>
      </p>
    </footer>
  </div>


  </body>
</html>
